package com.dating.utils;

public class StrKit {
	
	public static String firstCharToLowerCase(String str) {
		char firstChar = str.charAt(0);
		if ((firstChar >= 'A') && (firstChar <= 'Z')) {
			char[] arr = str.toCharArray();
			int tmp25_24 = 0;
			char[] tmp25_23 = arr;
			tmp25_23[tmp25_24] = (char) (tmp25_23[tmp25_24] + ' ');
			return new String(arr);
		}
		return str;
	}

	public static String firstCharToUpperCase(String str) {
		char firstChar = str.charAt(0);
		if ((firstChar >= 'a') && (firstChar <= 'z')) {
			char[] arr = str.toCharArray();
			int tmp25_24 = 0;
			char[] tmp25_23 = arr;
			tmp25_23[tmp25_24] = (char) (tmp25_23[tmp25_24] - ' ');
			return new String(arr);
		}
		return str;
	}

	public static boolean isBlank(Object str) {
		return ((str == null) || ("".equals(str)));
	}

	public static boolean notBlank(Object str) {
		return ((str != null) && (!("".equals(str))));
	}

	public static boolean notBlank(Object[] strings) {
		if (strings == null)
			return false;
		for (Object str : strings)
			if ((str == null) || ("".equals(str)))
				return false;
		return true;
	}

	public static boolean notNull(Object[] paras) {
		if (paras == null)
			return false;
		for (Object obj : paras)
			if (obj == null)
				return false;
		return true;
	}
}
